package com.zaoke.web.service.food;

import java.util.List;
import java.util.Set;

import com.zaoke.web.bo.food.Food;
import com.zaoke.web.bo.food.FoodPromotion;
import com.zaoke.web.bo.query.food.FoodSave;
import com.zaoke.web.bo.query.food.PromotionSave;

public interface FoodService {

	public Set<Food> getAllActiveFoods(boolean needDetail);
	
	public List<FoodPromotion> getAllActivePromotions();

	public Food getFoodById(long foodId,boolean readDB);
	
	public FoodPromotion getPromotionById(Long id);
	
	public boolean newFood(FoodSave input);
	
	public boolean updateFood(FoodSave input);
	
	public boolean deleteFood(Long foodid);
	
	public boolean newPromotion(PromotionSave input);
	
	public boolean updatePromotion(PromotionSave input);
	
	public boolean deletePromotion(Long id);
	

}
